home *** CD-ROM | disk | FTP | other *** search
- Path: nwlink.com!usenet
- From: Teresa Reiko <tjr19@mail.nwlink.com>
- Newsgroups: comp.lang.c
- Subject: Re: Obtaining file lists in C?
- Date: 18 Apr 1996 13:39:58 GMT
- Organization: Northwest Link
- Message-ID: <4l5gne$j0v@texas.nwlink.com>
- References: <gcraig.1.001653A2@interaccess.com> <4ktll1$bk5@texas.nwlink.com> <4l119oINN8os@mayne.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: port59.annex2.nwlink.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2 (Windows; U; 16bit)
-
- c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
-
- > >This is impossible in standard C. There is no standard C function to
- > >read the directories. Most C implementations include one, however, so
- > >for instance in Borland C you can use findfirst and findnext, or you
- > >can use opendir, readdir, etc.
- >
- >The latter are preferrable, because they are part of a standard, namely
- >POSIX.1. They also have reentrant semantics (more than one directory reading
- >stream can be created and stepped simultaneously).
-
- Well, findfirst and findnext can operate on more than one ffblk
- structure simultaneously. And they are part of a standard too:
- the MS/PC-DOS standard. Also, they are a lot more powerful.
-
- ----- for every vision there is an equal and opposite revision ... -----
- ------------------------------------------------------------------------
- Teresa Reiko Chief Programmer, Tenbyte Software tjr19@nwlink.com
- ------------------------------------------------------------------------
-
-
-